<!-- 象形图配置 -->
<template>
  <div style="margin-top: 16px">
    <el-form-item label="图标" style="margin-bottom: 8px">
      <l-img-select v-model="myConfig.symbol" />
    </el-form-item>
    <el-form-item label="图标字号">
      <el-input-number
        v-model="myConfig.symbolSize"
        controls-position="right"
        :min="12"
      ></el-input-number>
    </el-form-item>
    <el-form-item label="数值颜色">
      <l-input-color v-model="myConfig.color"></l-input-color>
    </el-form-item>
    <el-form-item label="轴字体">
      <l-input-color v-model="myConfig.nameColor"></l-input-color>
    </el-form-item>
    <el-form-item label="间距" class="form_item_margin">
      <el-slider
        v-model="myConfig.split"
        :show-tooltip="false"
        class="slider136 r_margin_right8"
      ></el-slider>
      <el-input
        v-model.number="myConfig.split"
        class="r_56width"
        oninput="value=value.replace(/[^\d]/g,'')"
      >
      </el-input>
    </el-form-item>
    <hr class="hr_color" style="margin-bottom: 2px" />
    <el-collapse accordion>
      <el-collapse-item title="X轴设置">
        <el-form-item label="显示">
          <el-switch v-model="myConfig.xAxisShow" class="float_right">
          </el-switch>
        </el-form-item>
        <el-form-item label="字号">
          <el-input-number
            v-model="myConfig.xNameFontSize"
            controls-position="right"
            :min="12"
          ></el-input-number>
        </el-form-item>
      </el-collapse-item>
      <el-collapse-item title="Y轴设置">
        <el-form-item label="显示">
          <el-switch v-model="myConfig.yAxisShow" class="float_right">
          </el-switch>
        </el-form-item>
        <el-form-item label="字号">
          <el-input-number
            v-model="myConfig.yNameFontSize"
            controls-position="right"
            :min="12"
          ></el-input-number>
        </el-form-item>
      </el-collapse-item>
    </el-collapse>
    <hr class="hr_color" style="margin-bottom: 2px" />
  </div>
</template>

<script>
export default {
  props: {
    config: {
      type: Object,
      default: () => ({}),
    },
  },
  data() {
    return {};
  },
  computed: {
    myConfig() {
      return this.config;
    },
  },
};
</script>

<style>
</style>